package com.stars.pao.junit01;

import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;

public class DirectionTest {

    @Test
    public void testSouthDirection() {
        Direction southDirection = new Direction(Direction.Directions.SOUTH);
        assertEquals(Direction.Directions.SOUTH, southDirection.getCurrentDirection(), "南向测试未通过");
    }

    @Test
    public void testEastDirection() {
        Direction eastDirection = new Direction(Direction.Directions.EAST);
        assertEquals(Direction.Directions.EAST, eastDirection.getCurrentDirection(), "东向测试未通过");
    }

    @Test
    public void testWestDirection() {
        Direction westDirection = new Direction(Direction.Directions.WEST);
        assertEquals(Direction.Directions.WEST, westDirection.getCurrentDirection(), "西向测试未通过");
    }
}
